function getData(){$.get("../goodsAndShoppingCart/getGoodsInfo.php",{goodsId:"05"},function(o){console.log(JSON.parse(o));let g=JSON.parse(o),s="";g.forEach((o,g)=>{console.log(o),s+=`                    <li id="${o.goodsId}">
                            <img src="${o.goodsImg}"></img>
                                            <p class="p1">${o.goodsDesc}</p>
                                            <h2>${o.goodsName}</h2>
                                            <p class="price">${o.goodsPrice}</p>
                                             <p class="price">${o.goodsCount}</p>

                        </li>
            `}),$(".u1").html(s)})}$(function(){getData()}),$(".u1").on("click","li",function(o){"LI"==o.target.nodeName&&(console.log(o.target.id),o=o.target.id,location.href="../Allhtml/shopxiangqing.html?goodsId"+o)});